<template>
	<el-drawer title="招待记录详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-form-item label="接待标题" prop="title">{{form.title}}</el-form-item>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="接待类型" prop="entertainType">{{form.entertainTypeName}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="用餐类型" prop="diningType">{{form.diningTypeName}}</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="接待时间" prop="entertainTime">{{form.entertainTime}}</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="接待人数" prop="userCount">{{form.userCount}}/人
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="接待人" prop="entertainUser">{{form.userName}}</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明">{{form.remark}}</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				recordId:'',
				title: '',
				entertainTypeName: '',
				diningTypeName: '',
				entertainTime: '',
				userCount: 0,
				userName: '',
				remark:'',
				status:'0'
			},
			model:"rece",
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.recordId = data.recordId
			this.form.title = data.title
			this.form.entertainTypeName = data.entertainTypeName
			this.form.diningTypeName = data.diningTypeName
			this.form.entertainTime = data.entertainTime
			this.form.userCount = data.userCount
			this.form.userName = data.userName
			this.form.remark = data.remark
		},
	}
}
</script>

<style>
</style>
